第11步:让小猫也说出它的重量!就像我们要恐龙做的一样!

  • 使用 Say 指令让 kitty_sprite 说出它在月球上的重量。
  • .say() 指令中使用 str() 组合 "I'd weigh "kitty_moon_weight
  • Moon 拖动到程序底部。
  • 使用 Wait 让控制台等待 3 秒。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)